sysroot-upgrader: Check merge deployment, not ref for differences
authorColin Walters <walters@verbum.org>
Mon, 31 Mar 2014 18:41:13 +0000 (14:41 -0400)
committerColin Walters <walters@verbum.org>
Mon, 31 Mar 2014 18:41:13 +0000 (14:41 -0400)
commit913337c557d0be9a3b7b7f5251a5d12a33a5a937
treed91f8c5f67fd8aef0c057312ea72e1d117134920
parent1fd01077a5d29736e2d98e49a1664db251efd8ce
sysroot-upgrader: Check merge deployment, not ref for differences

Otherwise this broke atomicity; we could fetch/store the ref, then
crash, and then not upgrade the next time we tried upgrading.

The correct model is: the tree has changed if the new ref is different
from the merge deployment.
src/libostree/ostree-sysroot-upgrader.c